export default class AttendanceStatistics {
  static list (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/attendanceRecord', 'get', params, axiosOption, httpOption);
  }
  static add (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/attendanceRecord', 'post', params, axiosOption, httpOption);
  }
  static update (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/attendanceRecord', 'put', params, axiosOption, httpOption);
  }
  static detail (sender, params, axiosOption, httpOption) {
    return sender.doUrl(`admin/attendanceRecord/${params}`, 'get', axiosOption, httpOption);
  }
  static delete (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/attendanceRecord', 'delete', params, axiosOption, httpOption);
  }
  static deletes (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/attendanceRecord', 'delete', params, axiosOption, httpOption);
  }
  static statisticsByGroup (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/attendanceStatistics/statisticsByGroup', 'get', params, axiosOption, httpOption);
  }
  static statisticsExportByGroup (sender, params, fileName) {
    return sender.download('admin/attendanceStatistics/statisticsExportByGroup', params, fileName);
  }
  static recordlist (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/attendanceRecord/getStatisticsDetailByUser', 'get', params, axiosOption, httpOption);
  }
}
